{
    "position": "bottom",
    "height": 30,
    "modules-left": [
        "custom/menu",
        "wlr/taskbar"
    ],
    "modules-center": [
        "custom/wf_recorder",
        "custom/screenshot"	
    ],
    "modules-right": [
        "pulseaudio",
        "network",
        "backlight",
        "temperature",
        "custom/weather",
        "battery",
        "tray",
        "custom/clock",
        "custom/exit"
    ],
    "custom/player": {
        "format": " ♫ ",
        "on-click": "playerctl -a play-pause",
        "tooltip": false
    },
    "custom/menu": {
        "format": "  MENÜ ",
        "on-click": "$(dinit --get panel.menu)",
        "tooltip": false
    },
    "custom/exit": {
        "format": "  ",
        "on-click": "nwgbar -b 272822",
        "tooltip": false
    },
    "wlr/taskbar": {
        "format": "{icon}",
        "tooltip-format": "{title}",
        "icon-size": 24,
        "icon-theme": "milis-icon-theme",
        "on-click": "minimize-raise",
        "on-click-middle": "close"
    },
    "clock": {
        "format": "{:%d %b %a, %H:%M}",
        "on-click": "gsimplecal"
    },
    "cpu": {
        "format": " %{usage}",
        "tooltip": false,
        "on-click": "lxtask"
    },
    "memory": {
        "format": " %{}",
        "on-click": "lxtask"
    },
    "temperature": {
		"hwmon-path": "/sys/class/hwmon/hwmon7/temp1_input",
        "critical-threshold": 80,
        "on-click": "",
        "format": "{temperatureC}°C {icon}",
        "format-icons": [
            "",
            "",
            ""
        ]
    },
    "backlight": {
        "format": "{icon} %{percent}",
        "format-icons": [
            "",
            ""
        ],
		"on-click": "",
        "on-scroll-up": "light -A 5 && light -O",
        "on-scroll-down": "light -U 5 && light -O"
    },
    "battery": {
        "states": {
            "warning": 30,
            "critical": 15
        },
        "format": "{icon} %{capacity}",
        "format-charging": " %{capacity}",
        "format-plugged": " %{capacity}",
        "format-alt": "{icon} {time}",
        "format-icons": [
            "",
            "",
            "",
            "",
            ""
        ]
    },
    "network": {
        "format-wifi": " {essid} (%{signalStrength})",
        "format-ethernet": " {ifname}",
        "format-linked": " {ifname} (No IP)",
        "format-disconnected": "",
        "on-click": "connman-gtk"
    },
    "pulseaudio": {
        "format": "{icon} %{volume}       {format_source}",
        "format-bluetooth": "{volume}% {icon}       {format_source}",
        "format-bluetooth-muted": " {icon}       {format_source}",
        "format-muted": "       {format_source}",
        "format-source": " %{volume}",
        "format-source-muted": "",
        "format-icons": {
            "headphone": "",
            "hands-free": "",
            "headset": "",
            "phone": "",
            "portable": "",
            "car": "",
            "default": [
                "",
                "",
                ""
            ]
        },
        "on-click": "sakura -x ncpamixer"
    },
    "tray": {},
    "custom/wf_recorder": {
        "format": "{}",
        "interval": 1,
        "exec": "~/.config/waybar/wf-rec.py",
        "on-click": "~/.config/waybar/wf-rec.py --click",
        "on-click-middle": "~/.config/waybar/wf-rec.py --middle"
    },
    "custom/weather": {
        "format": "{}",
        "interval": 600,
        "exec": "~/.config/waybar/weather.py",
        "tooltip": true,
        "return-type": "json",
        "on-click": "~/.config/waybar/weather.py --girdi"
    },
    "custom/clock": {
        "format": "{}",
        "interval": 60,
        "exec": "date +'%d %b %a, %H:%M'",
        "on-click": "gsimplecal"
    },
    "custom/screenshot": {
        "format": "",
        "on-click": "$HOME/.config/swappy/area.sh"
    }
}
